/*
 * Copyright 2010 Askar Kalykov, oxygene.core@gmail.com
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.oxygenecore.processor.description;

import com.oxygenecore.processor.Expression;
import com.oxygenecore.processor.Statement;

import java.lang.reflect.Constructor;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

/**
 * @author Askar Kalykov
 *         Date: 15.09.2010
 *         Time: 22:29:09
 */
public interface ClassScannerListener {

    public void beginTraverse();

    public void endTraverse();

    public <C extends Expression<T>, T> void beginExpression(ExpressionClassInfo<C, T> expressionClassInfo);

    public void endExpression();

    public <T extends Statement> void beginStatement(StatementClassInfo<T> statementClassInfo);

    public void endStatement();

    public void beginConstructor(ConstructorInfo constructorInfo);

    public void endConstructor();

    public <T> void beginExpressionParameter(ExpressionParameterInfo<T> expressionParameterInfo);

    public void endExpressionParameter();

    public void beginStatementParameter(StatementParameterInfo statementParameterInfo);

    public void endStatementParameter();

    public <T extends ParameterInfo<I>, I> void beginListParameterInfo(ListParameterInfo<T, I> listParameterInfo);

    public void endListParameterInfo();

}
